package com.example.mysql.rest;

import com.example.mysql.entity.ResponseResult;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;

@RequestMapping("/video")
@RestController
public class VideoController {

        /**
         * 上传视频
         *
         * @param request
         * @return
         * @throws Exception
         */
        @CrossOrigin
        @ResponseBody
        @RequestMapping(value = "/upload")
        public String uploadVideo(HttpServletRequest request) {
            return "a";
        }

        /**
         * 获取视频信息
         *
         * @param request
         * @return
         */
        @CrossOrigin
        @ResponseBody
        @RequestMapping(value = "/getVideoInfo")
        public ResponseResult getVideoInfo(HttpServletRequest request) {
            return null;
        }
}
